home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
-
- class IntegrationHelper:
-
- def __init__(self, username = None, password = None, sharedKey = None, certChain = None, privateKey = None, cryptoID = None, protocol = None, x509Fingerprint = None, x509TrustList = None, x509CommonName = None, settings = None):
- self.username = None
- self.password = None
- self.sharedKey = None
- self.certChain = None
- self.privateKey = None
- self.checker = None
- if username and password:
- if not sharedKey and certChain:
- pass
- if not privateKey:
- self.username = username
- self.password = password
- elif username and sharedKey:
- if not password and certChain:
- pass
- if not privateKey:
- self.username = username
- self.sharedKey = sharedKey
- elif certChain and privateKey:
- if not username and password:
- pass
- if not sharedKey:
- self.certChain = certChain
- self.privateKey = privateKey
- elif not password and not username and not sharedKey and not certChain and not privateKey:
- pass
- else:
- raise ValueError('Bad parameters')
- if not privateKey:
- if cryptoID and protocol or x509Fingerprint:
- raise ValueError("Can't use shared keys with other forms ofauthentication")
- x509Fingerprint
- self.checker = Checker(cryptoID, protocol, x509Fingerprint, x509TrustList, x509CommonName)
- self.settings = settings
-
-
-